import request from '@/utils/request'

// 查询vendorclass列表
export function listVendorclass(query) {
  return request({
    url: '/vendorclass/vendorclass/list',
    method: 'get',
    params: query
  })
}

// 查询vendorclass详细
export function getVendorclass(cVCCode) {
  return request({
    url: '/vendorclass/vendorclass/' + cVCCode,
    method: 'get'
  })
}

// 新增vendorclass
export function addVendorclass(data) {
  return request({
    url: '/vendorclass/vendorclass',
    method: 'post',
    data: data
  })
}

// 修改vendorclass
export function updateVendorclass(data) {
  return request({
    url: '/vendorclass/vendorclass',
    method: 'put',
    data: data
  })
}

// 删除vendorclass
export function delVendorclass(cVCCode) {
  return request({
    url: '/vendorclass/vendorclass/' + cVCCode,
    method: 'delete'
  })
}
